package drg_group.beijing_2022.MDC;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

import drg_group.beijing_2022.Base;
import drg_group.beijing_2022.MedicalRecord;
import drg_group.beijing_2022.ADRG.*;

public class MDCD{
    public static String group(MedicalRecord record){
        String[] mdc_zd={"D14.001","K14.600x001","M31.300","D37.009","J33.900","H93.301","Q35.302","J35.801","S00.501","K14.900x003","K03.800x002","Q36.003","T90.800","Q18.200x004","H60.100","S11.201","S19.801","H74.201","K08.102","M85.000x083","J10.100x002","K04.300","Q27.802","D14.000x006","K06.800x014","K13.014","K02.400x001","C11.201","J38.601","J32.900x009","D18.000x823","H95.800","K08.805","C05.000","Q38.801","H73.100","K13.202","H93.101","K12.217","C43.201","D37.011","K14.002","C13.000","Q36.905","K07.107","K00.402","J03.901","K10.900x002","T17.200","J39.217","C14.002","H60.000x004","K11.200x011","G47.300","B37.002","K06.808","K07.200x003","R49.001","T81.804","K09.003","D21.000x002","J32.301","Z42.002","K14.000","Q38.500x005","S10.004","K10.901","J38.700x013","C49.005","K08.900","K07.011","C02.000x002","B37.001","H81.400x003","J37.100","K08.807","C10.200","K13.000x023","D37.007","J35.803","K00.601","K00.602","K03.800x001","B44.800x006","D16.410","J06.000x002","J38.700x001","J10.803+H67.1*","C08.900x001","J10.100x003","K02.400x002","C04.100","H70.000x007","D14.003","J33.003","Q31.800x005","K13.711","K12.114","D37.001","Q17.000","B87.300x002+J99.8*","K12.102","K13.707","A69.000","H81.400","Q18.805","K14.801","C08.900","S03.200","K13.703","A18.205","K11.602","Q16.400","A18.800x034+K93.8*","Q18.200x003","K12.000","K07.300x008","C11.302","K11.000","C13.800","J95.004","C71.900x009","H66.102","K11.205","S10.001","K04.701","S19.800x004","K07.108","J35.802","H61.300","K11.209","S15.001","S00.403","K03.202","M95.208","J01.400","T17.002","C00.102","C08.800x001","C79.202","C00.404","C02.101","K06.805","H90.100","Q30.800x005","R59.900","C06.100x003","K12.301","K13.203","H91.901","D23.303","J30.100","K00.400x004","J36.x00x001","K13.704","K11.803","K13.100","J38.001","C32.001","K11.100x004","J35.807","M95.003","S02.600","J05.000","H71.x04","J33.802","S09.900x006","J04.000","J39.209","Q35.500","K13.706","J95.000x007","D48.701","C79.800x828","J31.000","K04.803","J09.x05+H67.1*","H90.801","D37.014","S01.300x002","K10.000x003","H74.802","C11.800","K08.201","D21.002","K03.001","Q35.907","D00.004","K03.602","J32.900x007","C79.503","J33.804","S17.900","Q38.500x006","C79.800x844","S11.700","Z42.006","D37.013","K02.800x003","C41.012","J04.000x004","C13.200","H83.800x002","C00.900","D37.000x012","J00.x00","Z46.100","C30.003","J34.800x002","K03.104","Q27.800x024","K04.400","K13.000x006","B49.x08","T85.607","D36.702","K13.401","J39.202","K03.601","K08.808","K13.700x023","Q38.600x004","J95.000x001","K07.204","C06.900","Q27.800x021","Q18.700","K03.900","H90.300","D14.005","C08.800","J38.709","D16.402","D16.405","Z45.304","J38.312","J32.800x008","J34.810","K04.802","C00.500x002","K09.000x005","D22.301","J36.x00","J95.501","Q16.500","Q30.300","K07.000x012","J34.806","J34.008","K00.400x001","Q38.600x006","Q18.100x008","D14.002","K13.700x025","Q37.200","H66.000","K00.501","T28.000x003","H66.101","T86.802","Q16.200","D22.000","K14.805","C79.800x812","S09.905","S13.500","J39.101","C78.300x006","J38.710","Q67.404","K05.102","A18.802+K93.8*","I88.900x007","C78.305","K05.301","K11.800x007","K13.710","D16.411","K12.212","C00.304","S01.401","K10.802","K12.302","Q17.300x004","D16.400x013","K14.400","D16.400x018","K00.200x009","K04.200","K00.600x002","K07.110","Q89.800x909","H83.800x003","Q36.100","J38.401","J38.000x031","K10.000x004","D03.400x002","Z42.009","C06.102","J32.902","J38.400x003","K02.400x003","K13.700x013","K11.211","J39.223","K09.806","H60.801","D10.501","K04.500","K07.901","Q18.801","B44.800x007","K00.600x006","Q75.801","C78.300x008","A69.100x003","S01.200x011","S01.500x022","H65.901","Q31.301","K07.101","S00.402","H61.803","D48.700x007","J34.108","C31.300","D16.400x025","J37.004","J39.200x004","D37.000x005","H93.200x005","H93.800x001","H70.000","C11.000","C01.x00x003","H61.200","H72.101","H74.400","G47.300x033","D02.001","J02.900x002","K05.200","K06.800x012","K07.007","D38.502","D37.004","S01.300x051","C76.001","K11.600x008","D18.000x511","J11.802+H67.1*","K13.700x022","M95.209","C41.000x020","Q31.900","J34.000x004","R49.100","K02.800x002","K14.004","D18.000x858","C14.800x004","D21.007","J38.714","K09.102","K10.809","S10.801","C49.004","D21.005","C44.304","J39.215","K05.500x001","K11.901","H81.101","Q31.802","Q38.000x007","D16.404","J35.804","D37.000x001","C76.002","A18.803+M63.0*","C32.900","K13.700x009","C11.200","H60.500x007","K13.000x001","C00.500x005","J38.721","D21.004","K00.001","D16.500","T27.500x001","Z42.000x015","C09.100x001","J38.200x001","T85.606","Q38.500x009","Q38.000x003","K09.204","Q30.800x008","H69.800","J32.903","M95.007","H93.901","D36.700x004","S01.300x012","S08.801","C47.000x010","Q36.903","J34.809","T16.x00x001","D17.700x003","J38.600","S01.001","K13.200x005","Q18.200","K09.801","K11.200","T16.x00x002","K12.215","C11.300","K11.600","S03.301","C44.307","K13.700x021","H61.105","J32.800x007","K13.700x006","S02.501","D18.100x011","K13.500x002","S01.300x071","S10.000x003","S02.711","C14.200","J10.800","D37.000x002","H65.400","J38.711","H74.300x004","J38.000x001","T81.800x008","K04.002","Q18.104","S09.900","K04.000","Q18.500","S01.200x021","S15.003","D36.700x006","K03.600x001","J34.103","D16.401","C00.002","K08.000","K00.401","Q32.101","K09.000","K13.210","G47.302","Q35.300","Q30.900","H68.101","S12.815","K11.800","K06.100","T85.800x804","S02.802","R04.801","K07.000x008","H74.000","C09.100x003","J38.304","D14.100","Q17.000x005","J32.905","H91.100","K09.100x001","C41.011","S00.004","D38.501","J10.101","S11.003","K00.301","S00.003","Q18.100x009","J04.001","J38.701","Q38.500x002","Q89.800x903","Q18.100x006","B44.800x001","C00.400","K06.100x001","S01.504","M95.205","C49.000x005","S13.500x004","H72.200","S03.400x002","C10.900","Q85.905","H61.902","K04.901","H61.103","S01.301","D36.701","H83.900x001","C02.800","D10.309","C02.100","D11.000","J95.806","D02.000","K13.600","Q35.502","K14.900x002","Q36.901","D04.201","H71.x05","I88.103","K10.804","D03.000","K07.600x001","K07.000x004","D44.700x004","S12.803","H83.301","H81.800","K02.800x001","D37.015","Q31.200","C02.100x001","J38.718","H60.300x006","J39.222","D37.000x004","K05.101","J38.707","D18.000x505","C06.100x005","K10.200","K11.604","H60.900","T17.300","J39.214","B08.500","Q18.400","C14.800x006","K13.700x004","J32.800x002","J32.800x001","D10.504","D02.000x003","J01.901","J39.225","H91.300x001","K13.602","J95.800x001","S13.402","C32.200","H65.900x001","H90.600","K00.800x002","C10.800x002","H73.900","C41.004","D37.000x014","S01.400x031","C76.004","E85.401","C77.001","S02.400x005","K13.000x012","Q16.401","K04.401","K05.200x002","J04.005","K12.200x011","J32.002","J38.000x032","K12.200x017","J39.811","D37.000x009","J33.803","E10.600x031","K05.103","D37.000x011","C02.900","J95.005","H70.001","H73.802","K11.501","C00.402","K04.007","Q17.400","K11.806","K06.200","D10.701","Q16.501","K02.500","H70.800x002","Q27.800x028","D48.518","H60.002","J39.208","Q17.400x002","E11.600x032","K13.013","K00.608","M31.301","K08.300x002","J38.400x002","J32.900","J38.700x022","S15.004","Q17.200","K12.105","Q17.500","Q30.200x001","J33.000","K00.605","J33.000x002","A18.400x018","D18.100x027","Q37.300","K06.807","G47.304","J33.001","K07.104","C79.502","S15.800x003","K06.801","J38.716","K12.117","K13.705","D23.300x004","S09.907","E85.400x006","H72.800","D11.701","H92.100","Q31.805","Z45.801","K10.800x005","K03.603","B49.x10","M95.100","D14.000x010","K05.500x005","L04.001","B37.800x084","H92.100x001","R06.700","S00.404","K12.305","K02.800x005","K11.200x009","K13.700","D04.000","K11.701","Q32.100","J37.001","J33.801","C76.003","K13.700x010","H95.900","K03.102","G47.303","S02.412","C31.900x001","K14.301","D18.102","C14.000","S00.800x053","K10.103","Q35.501","D02.300","K14.300","J34.002","S01.505","S00.300x051","C77.005","K11.200x014","K14.401","S00.800x055","C47.000x011","C03.000x002","K08.203","D10.308","Q36.900x003","K02.000","Q38.400x001","H68.100","J32.901","K07.003","Q38.304","S00.002","K12.100x013","D04.300x001","H93.100","Q17.801","C13.900","J39.210","K00.000x003","J39.809","K12.210","J39.224","K03.300x001","C49.001","Q36.902","K12.200x018","J34.001","H60.001","B08.802","T17.000","C00.000","J35.200","K07.000x013","J32.300x004","K12.100x012","H72.001","K00.100x001","T27.401","K06.800x013","C41.005","K07.301","H73.001","K09.200x001","K08.104","C41.000x025","H83.200x001","K10.800x002","J32.400x001","H66.400","K05.203","L04.002","J03.900","D14.008","D37.012","H91.200x001","H91.900","K03.105","Q35.901","S01.804","C10.300","Z41.103","D44.700x003","Q87.006","K05.106","J00.x00x007","Q75.805","K07.900","J05.100","K09.100x003","C14.800x001","K09.205","K11.200x012","S19.900","R43.800x002","K07.004","D17.700x032","J31.004","K14.100x001","C77.000x005","J33.100","T81.800x013","J03.800","J04.003","K11.204","J32.803","J38.700x021","A18.805+K93.8*","J38.705","C43.000","J39.300","K13.006","Q27.800x030","D16.409","T27.100x001","C12.x00x002","J11.100x003","Q30.000","C78.300x010","H73.800x005","J95.003","H66.900","D00.002","S09.801","K00.200x001","D48.200x005","J04.000x008","H83.100","J34.105","J39.900","J35.901","K13.402","K05.500x003","G47.300x037","K04.201","Q17.001","S01.300x081","S17.000x002","D10.300x005","J38.300x011","C41.003","K07.103","Z42.000x002","D23.200x008","S15.801","K12.206","H92.000","J38.719","K13.600x001","S01.500x051","D00.012","J01.200","S08.000","D16.403","J38.308","Q30.800x006","K04.006","K00.207","R59.000x004","K11.401","K07.200x002","J32.102","S02.500x002","K07.303","S00.803","K00.200x005","Q38.700","K06.806","J38.704","S03.501","K07.205","Q30.201","K11.805","J32.100x005","C30.002","C03.900x001","K03.101","J34.300","K07.200x001","J35.805","B48.300x002+K93.8*","Z42.000x019","H70.000x009","Q38.100","K07.300x007","Q31.800x003","R04.100","K14.300x003","C77.006","C76.005","K13.500","I88.900x004","K14.003","Q18.806","H66.900x003","J33.002","K05.100","K09.203","C79.504","J38.300x016","K07.109","K13.000x016","K10.800x010","A18.202","Q38.701","K03.103","J38.703","D37.019","D23.201","Q38.502","Q38.400","J32.302","D10.200x002","H60.000","K00.000","C47.000x006","T17.101","S00.400x052","C02.200x002","E11.600x031","J02.902","H65.300x001","D18.000x844","K14.800x003","C78.301","J31.201","C79.832","D09.701","K14.800x005","H74.801","D18.000x845","D10.503","K07.006","J39.206","J95.000x002","K07.203","K13.000x018","Q38.300x005","K13.403","C00.001","K11.605","K09.200","H61.101","H93.200x002","Q18.802","H61.000","C32.800","J33.805","K11.101","K12.200x019","C44.000","K13.715","J38.702","H65.300","K06.100x002","S09.901","K04.501","S00.800x056","I88.102","J38.402","H90.400","Q38.000x006","K13.008","K00.400x002","K11.203","S15.301","Q30.800x003","J34.800x009","J35.100","D37.000x003","H74.101","J39.000x001","C76.006","Q17.000x003","D10.602","C03.100","K13.011","S19.800x002","S02.500","K08.806","S02.400x001","J38.706","T17.001","A52.700x004+J99.8*","S12.814","H61.800x005","C06.200","J01.000","D22.200x002","S17.001","D48.702","C14.800","H70.201","D00.009","C79.800x825","S01.500x001","Q18.101","C05.200","D00.000x008","K11.700x003","H60.300","T16.x00","C14.800x005","H95.101","J38.000x002","E85.409","S10.700","A36.000","K14.800x013","H83.000x002","C10.102","K11.800x002","Q34.801","K07.300x003","C06.800","J37.000","H65.102","S17.801","C09.100","C30.102","Q18.900x002","S02.600x031","D37.016","K07.000x009","D00.006","A36.000x002","S13.501","C76.000x002","H80.100x002","K07.300x006","H72.900","T27.000x003","C14.800x003","C79.834","J03.900x001","S01.200x091","Q87.000x301","D38.505","C79.800x845","J35.808","K09.005","Z42.007","J36.x00x003","C49.000x004","M95.210","C46.200","Z46.300x001","K00.205","J04.002","K06.000","K10.801","D48.700x025","Z45.301","K12.000x001","Q38.305","J34.800x019","K10.203","S02.200","C00.303","Q17.300x006","C31.801","C02.200","J32.200x004","K13.002","S10.102","J35.800x008","Q38.300x007","S02.600x021","J11.100x004","B49.x06","D11.900","D14.006","J95.500","Q75.400","S01.502","K07.302","S00.804","A36.200x002","C10.400","C44.401","J02.903","Q38.200","C00.800","C07.x00x003","S01.700","H61.806","K13.012","C32.101","K13.015","R49.201","D11.900x001","D14.103","C78.302","K13.000x007","K06.000x003","K09.809","Q37.000","Q67.200","K09.805","J02.901","C44.302","C31.200","S13.403","J38.000x011","K11.503","C11.102","K09.808","K06.804","H61.801","D10.302","K11.208","C32.300","K14.500x002","C41.000x023","C11.801","E34.800x005","K00.603","K05.100x013","K07.201","D10.600","J34.800x001","K11.210","S00.802","K13.200x006","H81.902","H65.900","D44.600x002","C00.600","C47.000x005","C79.801","J39.205","J04.200","K02.901","H60.300x005","J95.000","K04.100","H70.800x001","Q30.804","Q38.600x002","E85.405","K13.200x010","S02.611","J34.800x006","H69.900","H61.901","K01.000","C41.000x018","D18.000x021","K13.201","Q16.301","Q37.400","H71.x02","H60.500x006","C31.100","K12.108","H74.900","S00.801","K07.000x007","K09.807","M95.207","K14.500x001","D18.001","D38.506","K11.202","J39.003","H71.x03","D38.001","T18.001","C41.001","D38.002","J39.200x016","K07.202","J04.004","K14.400x001","Q75.804","K10.201","C03.901","J38.720","H91.900x002","K05.400x002","S15.900x001","D18.100x013","K12.109","M95.204","J01.900","Z43.000x002","K10.000","H91.801","D22.401","C09.100x002","Q67.406","D48.200x004","C30.103","K13.601","C79.500x004","H93.102","C44.305","D21.006","C06.100x004","K03.300x002","H90.502","K07.005","K05.000","D00.010","K11.400x003","K12.001","B00.200x001","J00.x00x008","M95.203","M95.002","H71.x00","J32.801","C30.005","D38.003","G47.301","D10.307","C32.100x004","G47.300x001","J38.301","H95.102","B05.300+H67.1*","Q17.303","M95.006","D00.005","C11.101","J38.700x007","H73.801","S13.500x008","K12.208","D23.000","Q16.102","J31.202","K11.102","K07.300x009","J38.000x021","J38.700x003","C43.300","K14.000x006","H83.000x001","J32.900x008","C79.200x008","J38.000x012","C00.300","Q18.903","K09.004","S00.400","K09.804","D00.011","S08.100","K09.002","D10.700","K03.300","K03.100x001","Q38.601","C41.002","H70.900","K11.902","C06.101","C43.302","A69.100x002","D22.201","Q27.800x040","J30.200","K11.207","K05.100x012","I86.000","C47.000x009","B36.902+H62.2*","J34.802","T85.800x810","D03.301","J39.200x009","K10.302","K00.503","K10.214","K00.600x008","H60.401","H60.000x002","C00.301","C03.001","D18.101","J38.313","C14.001","K04.801","H69.000","Q17.301","D14.007","K07.100x012","K11.500x005","K07.200x013","J06.800x001","K07.000x002","K10.803","J30.300x002","K10.800x011","Q38.600x001","K12.110","K03.201","K13.007","K12.100x011","J32.200x005","J32.802","Q17.300x005","G47.300x031","A18.800x006+K93.8*","C79.804","K12.111","S01.300x061","G47.300x035","J31.002","S02.901","Q18.400x004","Q31.801","D21.001","H81.100","D17.000x003","J38.400","Q27.800x026","J35.806","Q31.500","J01.300","K09.100x006","A52.700x003+J99.8*","K07.100x011","H60.100x002","K00.400","H60.303","J31.204","C77.002","C79.800x840","K05.300x002","Q38.500x003","K05.104","D38.500x003","J38.000x005","C43.200x003","S02.411","H68.100x003","J34.106","K11.900x004","J38.309","K14.802","D10.200","Q35.900","J34.812","Q18.804","C79.505","D14.004","Q67.401","K03.401","Q31.000","J32.100","K13.206","C78.300x005","C41.000x027","Q67.403","K13.714","D38.500x004","H70.200","K07.903","K10.002","S00.001","K03.000x002","S13.500x009","D18.000x807","I77.003","J31.005","S03.000x001","C11.100","K00.204","C02.300","D18.000x506","J32.101","K10.213","Q17.800x004","K03.400","C41.009","J39.203","Q36.005","K12.003","J04.100","Z42.008","J37.005","K09.202","C79.500x016","C30.000","K12.304","S10.900","S01.300x011","Q17.300x002","D10.401","H80.900","C44.400x004","H90.501","K11.500x003","K13.700x019","K02.101","T18.000","S11.001","K13.700x007","Q37.100","K03.800x005","K05.100x011","J34.800x004","I88.104","H81.301","J38.700x009","D16.407","K00.202","S02.912","J39.221","T17.200x001","K00.200x003","S02.400x003","J30.101","K14.000x007","D37.002","H68.000","K06.802","L02.000","K13.001","M35.900x011","C06.100x002","C44.300x006","T27.402","K11.206","S09.800x003","J38.307","K14.804","K13.204","H65.101","S11.800x081","C11.001","K03.801","C32.103","Q17.802","C10.100","K08.803","K14.001","Q16.300","J34.007","D02.303","H93.201","J31.003","K13.010","Q87.004","J34.107","K06.000x002","K03.200x002","K11.300","Q85.900x037","S00.500","K12.214","B00.201","S13.502","C79.800x824","H83.200x002","K08.204","K12.213","C03.101","K05.100x005","H73.000","H81.302","J32.800x011","J34.200","D11.702","Q36.904","S13.500x011","K12.103","R04.000","J32.000","K06.100x003","J39.200x008","S02.800x003","C11.200x002","K07.100x015","C11.301","Q27.300x007","J95.809","K12.211","C00.500","H81.900","C14.800x002","S01.200x031","J34.006","S02.600x011","D10.601","C79.500x028","H60.300x003","K04.700","K07.603","K07.604","K10.212","J02.900x005","J32.005","C79.800x826","C06.902","C14.003","H60.302","S02.600x081","K13.200x007","K04.600","K07.002","D10.900","D86.802","B08.000x003","H61.104","J34.807","A36.100","C02.400","E14.600x031","S13.500x006","C30.001","S10.901","C41.010","Q89.202","K07.100x009","C11.300x006","J34.004","Q38.301","D37.000x015","H83.302","K11.800x006","S13.401","C79.800x806","S01.503","S08.800","D14.000x007","C03.900","Q16.103","D38.508","J38.311","H70.003","S01.900","E85.410","K13.700x001","H83.800x004","Q89.800x906","S01.300x031","Q17.302","J34.101","R49.202","K11.700x001","J34.800x034","C44.300","H61.102","H73.804","H66.900x002","H81.901","D18.000x809","J32.200","J35.800x009","K10.301","Q36.900","A66.501+J99.8*","C79.201","H70.103","J31.200","J38.310","K07.200x005","K13.200x004","D17.700x021","K13.016","S13.500x010","Q18.800x003","Q67.402","K12.002","S01.803","J38.300x018","K12.115","K05.100x010","Q16.900","C00.302","Q37.900","C41.100","K02.001","S01.200x092","E10.600x032","K00.300x002","K14.808","C30.100","J30.400","D04.401","K00.600x007","H83.300x001","K11.402","K03.300x003","K11.903","D37.008","S01.501","K07.800x001","H60.200","H90.200","S09.902","D18.000x503","A18.601+H67.0*","K12.204","K13.700x011","Q85.900x038","S01.500x021","H60.501","Q30.001","Q37.800","K07.100x008","A18.203","C11.901","D37.005","K08.101","H72.100","J38.200x002","K07.304","C78.303","J02.900","J39.207","C77.008","B00.203","K13.702","K03.203","K05.201","J38.305","D37.000x008","B02.800","C10.800","J11.102","H93.300","A52.703+J99.8*","K04.900","Q16.101","Q67.407","K14.800x010","K10.100x001","K13.400","J38.500","C31.800","K13.300","C44.201","C00.101","I88.101","K07.602","J95.807","K10.209","D16.400x019","Q38.004","C11.300x004","K07.200x012","K07.100x014","C02.000","D48.200x006","B44.804","C14.800x007","K10.800x012","K10.102","C00.200","C13.901","D14.100x002","Z42.005","Q27.300x010","J32.300","B08.501","K02.800x008","K12.202","R49.000","D48.200x008","J39.220","C77.003","K14.807","J95.400","K14.800x012","Q30.101","H65.000x002","J34.100x008","H60.000x005","D37.010","K13.005","K13.207","J10.100","J34.003","B49.x05","S12.813","K13.200x011","K07.600","E14.600x032","D36.703","K12.201","D18.100x007","J38.700x027","D02.302","Q67.400x202","C44.300x005","S15.005","J35.000","S01.302","H66.301","A69.100x001","Q75.200x001","D17.700x006","C39.801","D37.017","D10.303","S13.500x005","J11.100x002","K06.000x004","D48.200x002","H65.200","Q18.001","D10.500x001","H73.803","K09.900x001","Z43.000","D37.000x007","K04.703","H61.100x005","A36.200","K04.702","K00.206","K07.105","C08.100","Q17.803","J38.000x022","H61.100x009","J32.900x011","H91.200","J37.002","J38.303","H60.300x002","J32.400","H60.503","K00.000x004","H80.000x001","C32.100","K13.400x001","D10.000x004","S15.800x002","H83.801","S02.812","K14.300x001","S03.000","A18.804+K93.8*","K10.300x003","D18.000x508","Q38.303","J34.805","C77.007","S09.904","C47.000x007","C02.201","K11.606","C09.900","J32.800x004","H61.100x002","K11.302","C31.000","J95.002","Q17.002","C03.000","D23.300x003","Q38.501","D17.001","H80.800x001","S17.000x001","J30.300x001","K11.100x002","D00.008","K13.200x009","K07.500x002","R07.000","S02.600x041","H80.200","S02.803","S00.300","D48.200x003","H90.000","B44.800x004+H62.2*","J02.801","J34.801","K12.209","S02.401","K00.604","K13.000x017","Q89.800x907","H91.001","Q38.300","C79.831","K04.200x003","D10.000x005","H70.100","S13.400x005","K05.202","C02.900x002","H70.101","C79.800x843","K08.202","A18.800x025+K93.8*","S01.802","D16.406","K05.105","S02.813","K07.100x017","D37.000x013","K14.900x004","D00.000x005","J10.100x004","D00.000x007","C11.900","Z41.102","D38.500x001","Q18.100x003","C30.004","D02.301","K06.800x015","Q36.001","C10.101","H83.200x003","D38.507","C05.900","D38.503","T28.502","K07.100x016","S15.002","K01.100","K07.305","R44.201","K11.600x005","T70.000","K04.000x007","S13.601","B87.400x001+H94.8*","K07.902","C06.001","K07.012","K11.802","G47.300x036","J31.203","J34.000x010","K00.101","K10.208","H60.301","K07.008","C00.403","J06.000","K10.808","K13.709","C02.300x002","D10.100","A18.200x005","K07.000x011","H90.500","K07.200x014","S13.400x003","C79.800x833","J38.002","C00.500x003","C07.x00","K12.203","K07.009","M95.202","K04.500x001","H83.101","D48.200x007","K11.400","C11.300x005","H92.200","J38.300x015","Q31.806","Q85.900x031","D10.101","S11.100x001","J35.300","K12.101","D10.306","H73.102","Q27.302","J32.906","K10.100","S15.100","K03.500","H83.000","C01.x01","T85.800x811","Q38.400x002","J03.902","R06.501","S15.200","C05.800","D22.400x002","H61.100x007","Q30.800x007","D16.500x002","H73.101","H81.200","J38.102","Q37.500","T28.501","J34.804","S03.400x001","C10.000","C79.500x007","H60.901","D04.400x001","B48.100","H90.700","J34.005","S00.700","D18.003","J02.905","S01.400x011","Q18.103","D00.003","Q36.000","C30.101","K04.101","S09.200","H65.400x001","K08.103","C05.100","D38.504","C13.100x001","C76.000x007","J35.809","S01.500x052","Q89.800x904","C32.000","J38.300x008","J38.300x013","S02.600x091","C09.800","Q31.800x004","K08.809","K04.800","Q35.101","A18.201","J95.803","C09.000","K10.800x006","Q35.100","J01.001","S10.003","S09.101","Q67.300","Q35.500x004","Q31.803","D03.201","S10.002","J04.000x006","K10.205","S00.401","J39.002","D21.000x008","K10.101","J11.100x001","K13.205","M95.001","D03.200x002","L04.003","H60.400","K11.301","D18.000x808","H66.001","Q18.002","D23.301","K06.900","K11.801","D10.000x003","K02.100","Q85.900x012","K03.800x003","C01.x00","J32.201","J38.400x004","C41.008","K07.010","Z45.303","K10.206","C04.800","D37.000x006","S00.302","J02.000","S00.500x052","Q18.102","D14.000x009","S01.000","K10.800x008","C41.007","J39.204","K13.009","Z43.001","D04.200x001","K06.901","H80.000x002","M95.201","K02.900x001","C06.901","K02.800x007","C00.401","D48.519","D36.700x005","K00.801","C79.803","J38.712","K12.106","S09.800x002","H61.001","D18.100x021","C43.400x002","D38.500x005","J39.201","Q18.003","J39.218","S09.903","A69.000x002","D22.302","K07.600x003","Q35.700","K13.101","K00.500x002","D04.300x002","K14.300x004","S10.101","J02.802","K12.218","C32.104","J01.100","D10.500x002","K07.200x011","K11.603","K05.400","C41.006","J32.000x005","H74.300x003","J10.100x001","K11.807","D14.000x005","D02.002","K13.000x014","K09.201","K14.809","H72.000","H93.001","K12.107","D18.004","K14.901","B36.903+H62.2*","H95.900x002","J39.213","K13.209","K06.810","C06.000","D03.401","H61.100x006","C47.000x008","A18.200x002","J32.800x003","D23.200x002","D18.000x510","J34.104","K11.700x002","D14.102","C44.200x001","S03.100","S11.002","H60.100x001","J34.813","Q35.902","Q89.800x905","D21.000x007","H80.100x001","Q17.100","S02.600x051","J32.800x009","D17.700x007","J32.000x009","T27.000x002","J38.201","D10.000","K07.106","M95.005","Q16.901","C02.300x003","K00.200x010","D10.400","H95.000x001","D36.700x007","K12.200x012","K14.302","K07.102","C79.830","B49.x09","J32.004","C04.900","A36.000x004","Q18.807","K03.106","K05.000x002","K00.002","K13.700x026","K09.100x004","S09.906","K13.700x024","K05.300","C00.500x004","J38.708","Q18.800x004","S13.500x007","J39.219","H66.200","C71.900x010","C05.900x002","K12.303","Q18.800x001","C78.300x004","C41.000x019","S01.506","H81.303","J37.003","Q27.800x036","B37.200x005+H62.2*","J39.001","D10.000x002","S00.800x054","K10.210","B44.200x001+J99.8*","J38.700x017","K11.404","S15.300","J39.200x020","S00.500x051","C06.100","Q17.501","J32.006","K13.003","M95.206","Q16.000","B37.000","Q67.400x906","D10.300x007","K13.004","Q35.903","H93.103","Q85.900x035","K13.603","C43.401","J39.216","K11.804","Q38.002","K06.803","C11.300x001","Q30.802","K10.204","J06.900","K10.211","S11.800x082","J38.000x006","D18.100x004","D37.018","K14.102","Q36.906","B02.801+H62.1*","C13.100x002","J33.800x002","Q17.003","C44.306","S02.612","K00.201","K00.502","S02.810","D00.001","Q89.800x908","S13.500x003","I77.001","J34.800x020","Q31.804","K05.600","Z42.010","Z46.400","S03.400","D23.200x003","K06.809","K09.103","J00.x00x006","D18.000x504","J38.717","K04.000x008","K02.200","K03.000","J32.800x006","K05.500x002","C00.200x002","C09.901","K07.100x010","H70.002","Q36.004","Q67.405","Q75.900x005","J32.900x010","A18.400x019","H70.800","Q18.800x002","T28.000x002","H93.900x001","J38.302","D18.100x010","C47.000x004","C32.102","K00.200x002","J30.000","K09.800x005","C13.101","J06.900x001","K13.400x002","Q38.000x005","C04.000","J31.100","K13.208","J00.x00x004","Q38.001","B37.003","D10.603","K12.116","Q18.600","Q35.301","K11.601","S10.902","Q36.006","K10.207","H71.x01","J34.102","K12.200x003","K13.400x004","K00.700","J01.800","H60.502","H81.000","K03.604","H61.804","D37.003","S00.000x053","D17.700x020","K06.800x009","H95.900x001","D00.007","K10.202","J95.800x013","C79.835","E85.402","H60.400x004","J03.900x006","K02.800x006","Q38.802","K05.100x008","S00.900","J38.715","Q18.300","J01.900x003","K10.000x002","S02.700x004","K14.803","D10.502","K09.001","Q30.801","A18.600","C03.100x002","Q17.900","C79.802","J34.800x033","K10.805","H61.805","D38.509","J32.904","K05.204","A36.000x003","K12.205","K14.200","H91.900x004","K08.802","C00.100","H70.102","Q32.000","D00.013","J34.803","C11.202","H74.300","K08.804","K12.216","Q36.002","D38.000x002","S02.600x061","K12.207","K00.203","K10.001","T18.002","K04.902","J95.805","D14.101","J38.101","S19.802","J38.200","K12.100x002","S02.201","C43.200x001","Z45.302","D10.402","D10.305","C77.004","J39.212","C79.203","K11.800x010","C09.902","D18.000x507","S11.004","K12.112","J32.001","K11.201","J03.000","C49.002","K00.900","Q30.805","S17.800","K09.000x007","Q38.003","Q27.800x027","S01.500x042","T70.100","B49.x07","D17.002","J39.200x015","C08.000","K13.700x018","S01.400x021","J34.811","D38.000x001","K07.300x005","H61.802","D18.000x501","Q38.300x003","K03.700","H83.200","K10.100x003","Q38.500x007","J31.001","S11.900","D37.000x010","K02.300","K04.001","J32.003","Q30.800x004","J95.001","D37.006","J36.x00x004","K08.302","K13.700x003","S02.211","D10.301","I89.000x014","H91.000","Q30.100x001","M85.000x081","D02.000x004","D48.200x009","C41.000x021","K11.303","Q31.100","C39.000","K03.204","H70.004","K08.801","S13.400"};
        String[] dept_list={};
        if (!(true && Base.contains(mdc_zd,record.zdList[0]))){
            return "";
        }
        
        Base.groupMessages.putMessage(record.Index,"符合MDCD入组条件，匹配规则：主诊断匹配");
        String result;

        result=DA1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DB3.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DC2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DD2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DE2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DG2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DJ1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DK1.group(record);
        if (result.length()>0){
            return result;
        }

        if (false && record.ssList!=null && record.ssList.length>0  && Base.intersect(Base.SS_VALID,record.ssList)){
            Base.groupMessages.putMessage(record.Index,"符合DQY入组条件，存在有效手术操作："+String.join(",",Base.Intersect(record.ssList,Base.SS_VALID)));
            return "DQY";
        }

        result=DR1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DS1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DT2.group(record);
        if (result.length()>0){
            return result;
        }

        result=DU1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DV1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DW1.group(record);
        if (result.length()>0){
            return result;
        }

        result=DZ1.group(record);
        if (result.length()>0){
            return result;
        }

        Base.groupMessages.putMessage(record.Index,"不符合MDCD的ADRG入组条件");
        return "";
    }
}

